#pragma once

#include <signal.h>
#include <stdint.h>

extern int fd;
extern uint32_t main_lock;
extern struct state_holder *states;
extern uint64_t num_states;
extern struct client_holder *clients;
extern uint64_t num_clients;

extern int main_loop_world(void *tmp);
extern int main_loop_send_asteroids(void *tmp);
extern int main_loop_send_players(void *tmp);
extern int main_loop_pod(void *tmp);
void skip_sleep_handler(int signal, siginfo_t *info, void *tmp);
